const express = require("express");
const path = require('path');
const app = express();
app.use(express.static(path.join(__dirname, 'public')));
app.get("/test", (req, res) => {
    res.send("xx");
});

const registerLogin = require('./routes/Login');
app.use(registerLogin);

app.listen(5000, err => {
    if (!err) console.log("启动");
    else console.log(err);
});